package com.example.lib_car.adapter

import android.graphics.Color
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.lib_car.R
import com.example.lib_car.applyparking.ColorEntity
import com.example.lib_common.mvi.BaseViewModel

class ColorAdapter : BaseQuickAdapter<ColorEntity, BaseViewHolder>(R.layout.item_color) {
    override fun convert(holder: BaseViewHolder, item: ColorEntity) {
        holder.setBackgroundColor(R.id.item_color,Color.parseColor(item.colorValue))
    }
}